package org.zjx.data.screen;

import org.zjx.command.entity.screen.Room;
import org.zjx.data.BaseSceneBuilder;

import java.awt.*;

public class PanSiLingSceneBuilder extends BaseSceneBuilder {

    @Override
    protected String getSceneName() {
        return "盘丝岭";
    }

    @Override
    protected Dimension getSceneSize() {
        return new Dimension(199, 149);
    }

    @Override
    protected void addMonsters() {

    }

    @Override
    protected void addNpcs() {
        addNpc("引路小妖", new Point(180, 132));
        addNpc("看门小妖", new Point(173, 123));
        addNpc("看门小妖", new Point(185, 116));
        addNpc("女妖", new Point(111, 49));
        addNpc("金琉璃", new Point(73, 75));
        addNpc("栗栗儿", new Point(77, 73));
    }

    @Override
    protected void addRooms() {
        Room panSiDong = createRoom("盘丝洞", new Dimension(57, 59));
        addNpcToRoom(panSiDong, "春十三娘", new Point(20, 18));
        addNpcToRoom(panSiDong, "晶晶姑娘", new Point(25, 44));
        rooms.add(panSiDong);
    }

    @Override
    protected void addTeleports() {
        addSceneTeleport(new Point(187, 5), "大唐境外", new Point(528, 113), new Point(187, 2));
        addSceneTeleport(new Point(187, 126), "盘丝洞", new Point(20, 9), new Point(192, 129));
        addRoomTeleport(new Point(187, 126), "盘丝洞", new Point(20, 9), new Point(192, 129));
    }

    public static void main(String[] args) {
        new PanSiLingSceneBuilder().execute("pansiling_scene.json", "盘丝岭");
    }
}